package com.campus.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.shop.controller.web.vo.OrderInfoVo;
import com.campus.shop.controller.web.vo.OrderStatusVo;
import com.campus.shop.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author xr
 * @since 2024-01-24 10:23:52
 */
@Mapper
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    OrderInfoVo getOrderInfo(String orderNo,Integer userId, Integer status);

    List<OrderStatusVo> selectOrderStatusCount(Integer userId);
}
